﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SnShared.Models
{
    public class Computer
    {
        public Computer()
        {
        }

        public int Id { get; set; }

        [StringLength(600)]
        [Index(IsUnique = true)]
        public string Name { get; set; }
        public virtual List<InstalledFile> InstalledFiles { get; set; }
        public virtual List<SoftwarePackage> InstalledPackages { get; set; }        
        public bool IsRevoked { get; set; }
    }
}